package com.educhains.module.user.vo;

import java.util.Date;

public class User {

    public static final String USER_SESSION_KEY = "sessionUser";

    public static final String USER_EMAIL_COOKIE_KEY = "userEmail";

    public static final String USER_PASSWORD_COOKIE_KEY = "userPassword";

    public static final int USER_AUTHORITY_APPLYING = 0;

    public static final int USER_AUTHORITY_ACTIVE = 1;

    public static final int USER_AUTHORITY_FROZEN = 2;

    public static final int USER_AUTHORITY_ADMIN = 3;

    public static final int USER_AUTHORITY_SUPER_ADMIN = 4;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_id
     *
     * @mbggenerated
     */
    private String userId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_name
     *
     * @mbggenerated
     */
    private String userName;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_contact_info
     *
     * @mbggenerated
     */
    private String userContactInfo;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_contribution
     *
     * @mbggenerated
     */
    private Long userContribution;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_like_num
     *
     * @mbggenerated
     */
    private Integer userLikeNum;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_funs_num
     *
     * @mbggenerated
     */
    private Integer userFunsNum;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_create_time
     *
     * @mbggenerated
     */
    private Date userCreateTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_modify_time
     *
     * @mbggenerated
     */
    private Date userModifyTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_modify_id
     *
     * @mbggenerated
     */
    private String userModifyId;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_last_login_time
     *
     * @mbggenerated
     */
    private Date userLastLoginTime;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_photo
     *
     * @mbggenerated
     */
    private String userPhoto;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_pwd
     *
     * @mbggenerated
     */
    private String userPwd;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_authority
     *
     * @mbggenerated
     */
    private Integer userAuthority;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_is_ban
     *
     * @mbggenerated
     */
    private Boolean userIsBan;

    /**
     * This field was generated by MyBatis Generator.
     * This field corresponds to the database column m_user.user_email
     *
     * @mbggenerated
     */
    private String userEmail;

    private String userSalt;

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table m_user
     *
     * @mbggenerated
     */
    public User(String userId, String userName, String userContactInfo, Long userContribution, Integer userLikeNum, Integer userFunsNum, Date userCreateTime, Date userModifyTime, String userModifyId, Date userLastLoginTime, String userPhoto, String userPwd, Integer userAuthority, Boolean userIsBan, String userEmail, String userSalt) {
        this.userId = userId;
        this.userName = userName;
        this.userContactInfo = userContactInfo;
        this.userContribution = userContribution;
        this.userLikeNum = userLikeNum;
        this.userFunsNum = userFunsNum;
        this.userCreateTime = userCreateTime;
        this.userModifyTime = userModifyTime;
        this.userModifyId = userModifyId;
        this.userLastLoginTime = userLastLoginTime;
        this.userPhoto = userPhoto;
        this.userPwd = userPwd;
        this.userAuthority = userAuthority;
        this.userIsBan = userIsBan;
        this.userEmail = userEmail;
        this.userSalt = userSalt;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table m_user
     *
     * @mbggenerated
     */
    public User() {
        super();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_id
     *
     * @return the value of m_user.user_id
     *
     * @mbggenerated
     */
    public String getUserId() {
        return userId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_id
     *
     * @param userId the value for m_user.user_id
     *
     * @mbggenerated
     */
    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_name
     *
     * @return the value of m_user.user_name
     *
     * @mbggenerated
     */
    public String getUserName() {
        return userName;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_name
     *
     * @param userName the value for m_user.user_name
     *
     * @mbggenerated
     */
    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_contact_info
     *
     * @return the value of m_user.user_contact_info
     *
     * @mbggenerated
     */
    public String getUserContactInfo() {
        return userContactInfo;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_contact_info
     *
     * @param userContactInfo the value for m_user.user_contact_info
     *
     * @mbggenerated
     */
    public void setUserContactInfo(String userContactInfo) {
        this.userContactInfo = userContactInfo == null ? null : userContactInfo.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_contribution
     *
     * @return the value of m_user.user_contribution
     *
     * @mbggenerated
     */
    public Long getUserContribution() {
        return userContribution;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_contribution
     *
     * @param userContribution the value for m_user.user_contribution
     *
     * @mbggenerated
     */
    public void setUserContribution(Long userContribution) {
        this.userContribution = userContribution;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_like_num
     *
     * @return the value of m_user.user_like_num
     *
     * @mbggenerated
     */
    public Integer getUserLikeNum() {
        return userLikeNum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_like_num
     *
     * @param userLikeNum the value for m_user.user_like_num
     *
     * @mbggenerated
     */
    public void setUserLikeNum(Integer userLikeNum) {
        this.userLikeNum = userLikeNum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_funs_num
     *
     * @return the value of m_user.user_funs_num
     *
     * @mbggenerated
     */
    public Integer getUserFunsNum() {
        return userFunsNum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_funs_num
     *
     * @param userFunsNum the value for m_user.user_funs_num
     *
     * @mbggenerated
     */
    public void setUserFunsNum(Integer userFunsNum) {
        this.userFunsNum = userFunsNum;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_create_time
     *
     * @return the value of m_user.user_create_time
     *
     * @mbggenerated
     */
    public Date getUserCreateTime() {
        return userCreateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_create_time
     *
     * @param userCreateTime the value for m_user.user_create_time
     *
     * @mbggenerated
     */
    public void setUserCreateTime(Date userCreateTime) {
        this.userCreateTime = userCreateTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_modify_time
     *
     * @return the value of m_user.user_modify_time
     *
     * @mbggenerated
     */
    public Date getUserModifyTime() {
        return userModifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_modify_time
     *
     * @param userModifyTime the value for m_user.user_modify_time
     *
     * @mbggenerated
     */
    public void setUserModifyTime(Date userModifyTime) {
        this.userModifyTime = userModifyTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_modify_id
     *
     * @return the value of m_user.user_modify_id
     *
     * @mbggenerated
     */
    public String getUserModifyId() {
        return userModifyId;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_modify_id
     *
     * @param userModifyId the value for m_user.user_modify_id
     *
     * @mbggenerated
     */
    public void setUserModifyId(String userModifyId) {
        this.userModifyId = userModifyId == null ? null : userModifyId.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_last_login_time
     *
     * @return the value of m_user.user_last_login_time
     *
     * @mbggenerated
     */
    public Date getUserLastLoginTime() {
        return userLastLoginTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_last_login_time
     *
     * @param userLastLoginTime the value for m_user.user_last_login_time
     *
     * @mbggenerated
     */
    public void setUserLastLoginTime(Date userLastLoginTime) {
        this.userLastLoginTime = userLastLoginTime;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_photo
     *
     * @return the value of m_user.user_photo
     *
     * @mbggenerated
     */
    public String getUserPhoto() {
        return userPhoto;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_photo
     *
     * @param userPhoto the value for m_user.user_photo
     *
     * @mbggenerated
     */
    public void setUserPhoto(String userPhoto) {
        this.userPhoto = userPhoto == null ? null : userPhoto.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_pwd
     *
     * @return the value of m_user.user_pwd
     *
     * @mbggenerated
     */
    public String getUserPwd() {
        return userPwd;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_pwd
     *
     * @param userPwd the value for m_user.user_pwd
     *
     * @mbggenerated
     */
    public void setUserPwd(String userPwd) {
        this.userPwd = userPwd == null ? null : userPwd.trim();
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_authority
     *
     * @return the value of m_user.user_authority
     *
     * @mbggenerated
     */
    public Integer getUserAuthority() {
        return userAuthority;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_authority
     *
     * @param userAuthority the value for m_user.user_authority
     *
     * @mbggenerated
     */
    public void setUserAuthority(Integer userAuthority) {
        this.userAuthority = userAuthority;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_is_ban
     *
     * @return the value of m_user.user_is_ban
     *
     * @mbggenerated
     */
    public Boolean getUserIsBan() {
        return userIsBan;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_is_ban
     *
     * @param userIsBan the value for m_user.user_is_ban
     *
     * @mbggenerated
     */
    public void setUserIsBan(Boolean userIsBan) {
        this.userIsBan = userIsBan;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method returns the value of the database column m_user.user_email
     *
     * @return the value of m_user.user_email
     * @mbggenerated
     */
    public String getUserEmail() {
        return userEmail;
    }

    /**
     * This method was generated by MyBatis Generator.
     * This method sets the value of the database column m_user.user_email
     *
     * @param userEmail the value for m_user.user_email
     * @mbggenerated
     */
    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail == null ? null : userEmail.trim();
    }

    public void setUserSalt(String userSalt) {
        this.userSalt = userSalt;
    }

    public String getUserSalt() {
        return this.userSalt;
    }
}